/*
 * @Author: underMoonzs 1994186472@qq.com
 * @Date: 2025-08-25 22:31:04
 * @LastEditors: underMoonzs 1994186472@qq.com
 * @LastEditTime: 2025-09-22 22:55:03
 * @FilePath: \lyshjpt\src\views\biz\api\water.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request' 
// import request2 from '@/utils/request2' 
export function getWaterQuality(query) {
  return request({
    url: '/gis/drinkwaterlist',
    method: 'get',
    params: query
  })
}

export function getinfo(query) {
  return request({
    url: `/base/segment/getinfo/${query.id}`,
    method: 'get'
  })
}

export function getQushuikou(query) {
  return request({
    url: '/drink/intake/list',
    method: 'get',
    params: query
  })
}

export function getAutoWaterQuality(query) {
  return request({
    url: '/gis/leaderCockpit/autoWaterQuality',
    method: 'get',
    params: query
  })
}

export function getDayPollutantsPropor(query) {
  return request({
    url: '/monitor/autohourdata/dayPollutantsPropor',
    method: 'get',
    params: query
  })
}

export function getMonthPollutantsPropor(query) {
  return request({
    url: '/monitor/autohourdata/monthPollutantsPropor',
    method: 'get',
    params: query
  })
}




export function getAutoStationInfo(query) {
  return request({
    url: `/monitor/autovaluatehourdata/overview/${query.id}`,
    method: 'get'
  })
}
export function getAutoStationHourTrend(query) {
  //console.log("query",query)
  return request({
    url: '/monitor/autovaluatehourdata/trendQuality',
    method: 'get',
    params: query
  })
}

export function getAutoStationDayTrend(query) {
  //console.log("query",query)
  return request({
    url: '/monitor/autovaluatedaydata/trendQuality',
    method: 'get',
    params: query
  })
}
export function getAutoStationMonthTrend(query) {
  //console.log("query",query)
  return request({
    url: '/monitor/autovaluatemonthdata/trendQuality',
    method: 'get',
    params: query
  })
}
